﻿using mozhi.smarterp.Finance.Enums;
using System;
using System.Collections.Generic;
using System.Text;
using Volo.Abp.Application.Dtos;

namespace mozhi.smarterp.Finance.Reports
{
    public class FinancialReportItemDto : ActivateDtoBase
    {
        public string Code { set; get; }

        public string ParentCode { set; get; }

        public string AssociateCode { set; get; }

        public FinancialReportType ReportType { set; get; }

        public AccountingStandardType AccountingStandard { set; get; }

        public string Number { set; get; }

        public string Name { set; get; }

        public int Index { set; get; }

        public List<FinancialReportItemSettingDto> Settings { set; get; }
    }

    public class FinancialReportItemSettingDto : EntityDto<Guid>
    {
        public Guid FinancialReportItemId { set; get; }

        public string FinancialReportItemCode { set; get; }

        /// <summary>
        /// 计算对象（科目代码或者行号（R开头））
        /// </summary>
        public string CalculateTarget { set; get; }

        public Guid? CalculateTargetId { set; get; }

        public string CalculateTargetName {  set; get; }

        /// <summary>
        /// 操作符号（+ ， -）
        /// </summary>
        public string Operator { set; get; }


        public int? ValueRuleType { set; get; }

        /// <summary>
        /// 前置条件
        /// </summary>
        public int? Precondition { set; get; }

    }
}
